package com.mystudy.springcloud.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mystudy.springcloud.domain.Storage;
import org.apache.ibatis.annotations.Param;

public interface StorageDao extends BaseMapper<Storage> {
	/**
	 * @功能: 减库存 已用库存 + count  | 剩余库存 - count
	 * @作者: 高志红
	 */
	void decreaseStorage(@Param("productId") Long productId, @Param("count") Integer count);
}
